<?php // no direct access
defined('_JEXEC') or die('Restricted access');

$canEdit	= ($this->user->authorize('com_content', 'edit', 'content', 'all') || $this->user->authorize('com_content', 'edit', 'content', 'own'));
?>
<?php if ($this->params->get('show_page_title', 1) && $this->params->get('page_title') != $this->article->title) {?>
	<div class="componentheading<?php echo $this->escape($this->params->get('pageclass_sfx')); ?>">
		<div class="post_title">
                 <?php echo $this->escape($this->article->title); ?>
		</div>
	</div>
<?php }else if ($canEdit || $this->params->get('show_title')) { ?>
	<div class="post_title">
		<?php 
			if($this->params->get('show_title')) echo $this->escape($this->article->title); 
			else   echo $this->escape($this->article->title)
		?>
	</div>	
	<?php } ?>

	<!-- noi dung -->
 <div class="post_body">
	<p>
	<?php if (isset ($this->article->toc)) : echo $this->article->toc;
		 endif; echo $this->article->text; ?>
	</p>
</div>


